//
//  PresidentDetailController.h
//  iPhoneDev01
//
//  Created by smu on 11-7-11.
//  Copyright 2011年 duk. All rights reserved.
//
#import <Foundation/Foundation.h>

@class President; 

#define kNumberOfEditableRows        4
#define kNameRowIndex                0
#define kFromYearRowIndex            1
#define kToYearRowIndex              2
#define kPartyIndex                  3

#define kLabelTag                    4096
@interface PresidentDetailController : UITableViewController <UITextFieldDelegate> {
    President *president;
    NSArray *fieldLabels;
    NSMutableDictionary *tempValues;
    UITextField *textFieldBeingEdited;    
}
@property (nonatomic, retain) President *president;
@property (nonatomic, retain) NSArray *fieldLabels;
@property (nonatomic, retain) NSMutableDictionary *tempValues;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;

- (IBAction)cancel:(id)sender;
- (IBAction)save:(id)sender;
- (IBAction)textFieldDone:(id)sender;
@end
